package com.linx.message.domain.bo;

import com.linx.message.domain.MessageInfo;
import com.linx.common.core.validate.AddGroup;
import com.linx.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import jakarta.validation.constraints.*;

/**
 * 消息业务对象 message_info
 *
 * @author linx
 * @date 2024-11-09
 */
@Data
@AutoMapper(target = MessageInfo.class, reverseConvertGenerate = false)
public class MessageInfoBo {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long messageInfoId;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    /**
     * 是否删除（0代表否 1代表是）
     */
    @NotBlank(message = "是否删除（0代表否 1代表是）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String isDelete;

    /**
     * 消息标题
     */
    @NotBlank(message = "消息标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String messageTitle;

    /**
     * 消息内容
     */
    @NotBlank(message = "消息内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String messageContent;

    /**
     * 模块名字：低碳能源，便捷通行，视频巡视等
     */
    @NotBlank(message = "模块名字：低碳能源，便捷通行，视频巡视等不能为空", groups = { AddGroup.class, EditGroup.class })
    private String messageType;

    /**
     * 系统，顺丰，捷顺
     */
    @NotBlank(message = "系统，顺丰，捷顺不能为空", groups = { AddGroup.class, EditGroup.class })
    private String messageSource;

    /**
     * 模块名称具体小类
     */
    @NotBlank(message = "模块名称具体小类不能为空", groups = { AddGroup.class, EditGroup.class })
    private String messageTypeTwo;

    /**
     * 是否发送短信（0代表否 1代表是）
     */
    @NotBlank(message = "是否发送短信（0代表否 1代表是）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String isSend;

    /**
     * 是否已读（0代表否 1代表是）
     */
    @NotBlank(message = "是否已读（0代表否 1代表是）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String isRead;

    /**
     * 发送人
     */
    private String sender;

    /**
     * 接收人
     */
    private String recipient;


}
